import { request } from '@/utils/request'

// 获取中介托管权限
export const getConfigTrusteeshipIntermediary = object =>
  request('admin/brand/config/trusteeshipIntermediary', 'get', { params: object })
export const writeConfigTrusteeshipIntermediary = object =>
  request('admin/brand/config/trusteeshipIntermediary', 'post', { data: object })

// 获取余额不足系统设置
export const getConfigAmendBalanceNotEnough = object =>
  request('admin/brand/config/amendBalanceNotEnough', 'get', { params: object })
export const writeConfigAmendBalanceNotEnough = object =>
  request('admin/brand/config/amendBalanceNotEnough', 'post', { data: object })

// 获取手持和计划取消推送设置 快捷设置 信用卡签约默认
export const getConfigCommon = object => request('admin/brand/config/common', 'get', { params: object })
export const writeConfigCommon = object => request('admin/brand/config/common', 'post', { data: object })

// 获取信用卡签约列表
export const getBankAstrictListApi = object => request('admin/brand/BankAstrict/list', 'post', { data: object })
export const writeBankAstrictListApi = object => request('admin/brand/BankAstrict/save', 'post', { data: object })

// 获取品牌提现代付设置
export const getWithdrawalGetType = object => request('admin/user/Withdrawal/getType', 'post', { data: object })
export const updateWithdrawalGetType = object =>
  request('admin/user/Withdrawal/updateWithdrawal', 'post', { data: object })

// 获取支付宝支付设置
export const getAlipayConfigApi = object => request('admin/brand/config/alipayConfig', 'get', { params: object })
export const updateAlipayConfigApi = object => request('admin/brand/config/alipayConfig', 'post', { data: object })

// 获取app升级配置
export const getAppVersionApi = object => request('admin/brand/AppVersion/index', 'post', { data: object })
export const editListAPI = object => request('admin/brand/AppVersion/edit', 'post', { data: object })
export const addListAPI = object => request('admin/brand/AppVersion/add', 'post', { data: object })
export const delListAPI = object => request('admin/brand/AppVersion/del', 'post', { data: object })

// 获取云存储
// export const getAlipayConfigApi = object => request('admin/brand/config/alipayConfig', 'get', { params: object })
// export const updateAlipayConfigApi = object => request('admin/brand/config/alipayConfig', 'post', { data: object })
